import { createRouter, createWebHistory } from "vue-router";
import HomeView from "../views/HomeView.vue";

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: "/",
      name: "home",
      component: HomeView,
    },
    {
      path: "/about",
      name: "about",
      component: () => import("../views/AboutView.vue"),
    },
    {
      path: "/achievement-rate",
      name: "AchievementRate",
      component: () => import("../views/achievement-rate/index.vue"),
    },
    {
      path: "/report-statistic",
      name: "ReportStatistic",
      component: () => import("../views/report-statistic/index.vue"),
    },
    {
      path: "/user-management",
      name: "UserManagement",
      component: () => import("../views/user-management/index.vue"),
    },
    {
      path: "/user-management/user-detail",
      name: "UserDetail",
      component: () => import("../views/user-management/components/userDetail/index.vue"),
    },
    {
      path: "/AddUser",
      name: "AddUser",
      component: () => import("../views/user-management/components/AddUser.vue"),
    },
    {
      path: "/qrcode-box",
      name: "QrcodeBox",
      component: () => import("../views/qrcode-box/index.vue"),
    },
    {
      path: "/home",
      name: "Home",
      component: () => import("../views/home/index.vue"),
    },
  ],
});

export default router;
